﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERP.WH.Models.Entity;

[Table("wh_inventory_check")]
public partial class WhInventoryCheck
{
    [Key]
    public long CheckId { get; set; }

    public string CheckNo { get; set; } = null!;

    public int WarehouseId { get; set; }

    /// <summary>
    /// 1-全盘, 2-抽盘, 3-动态盘点
    /// </summary>
    public sbyte? CheckType { get; set; }

    /// <summary>
    /// 1-盲盘, 2-明盘
    /// </summary>
    public sbyte? CheckMethod { get; set; }

    public DateOnly? PlanCheckDate { get; set; }

    public DateTime? ActualStartTime { get; set; }

    public DateTime? ActualEndTime { get; set; }

    public decimal? TotalDifferenceAmount { get; set; }

    /// <summary>
    /// 0-计划中, 1-进行中, 2-已完成, 3-已取消
    /// </summary>
    public sbyte? Status { get; set; }

    public string? Remark { get; set; }

    public int CreatedBy { get; set; }

    public DateTime? CreatedAt { get; set; }

    public sbyte? IsDelete { get; set; }
}
